package cn.cqie.attendance.manager.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 697
 * @date 2021/7/2 14:26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Course对象", description="")
public class AdminCourse extends Model {

    private static final long serialVersionUID = -6076396448222680984L;

    @TableId(value = "id", type = IdType.AUTO)
    private int id;


    @ApiModelProperty(value = "课程名（项目名称）")
    private String courseName;

    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "签到时间")
    private Date signInTime;

    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "签退时间")
    private Date signOutTime;

    @ApiModelProperty(value = "上课教室")
    private String classRoom;

    @ApiModelProperty(value = "备注")
    private String remark;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "课程时间")
    private Date courseTime;


    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "实训老师")
    private String trainTeacherName;

    @ApiModelProperty(value = "实训老师ID")
    private String trainTeacherId;

    @ApiModelProperty(value = "责任老师")
    private String responseTeacherName;

    @ApiModelProperty(value = "责任老师ID")
    private Integer responseTeacher;


}
